package com.gl.order.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gl.order.entity.TRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gl.order.entity.dto.RolePageDto;
import com.gl.order.entity.vo.OrderPageVo;
import com.gl.order.entity.vo.RoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author lsy
 * @since 2021-06-17
 */
@Repository
public interface TRoleMapper extends BaseMapper<TRole> {

    IPage<RoleVo> pageOfRole(Page<RoleVo> page, @Param("param") RolePageDto dto);

    List<String> findByUser(String userId);

}
